package com.girl.girl.domain;

import javax.persistence.criteria.CriteriaBuilder;

/**
 * http请求返回的最外层对象
 * Created by qxl on
 * 2018/7/3
 */
public class Result<T> {
    //编译码
    private Integer code;
    //消息
    private String message;
    //对象
    private T data;

    public Result(){

    }
    public Result(Integer code,String message,T data){
        this.setCode(code);
        this.setMessage(message);
        this.setData(data);
    }

    public Result(Integer code,String message){
        this.setCode(code);
        this.setMessage(message);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
